import Vue from 'vue'
import VueRouter from 'vue-router'
import connect from '@/views/connect/connect.vue'
import dateil from '@/views/dateil/dateil.vue'
import user from '@/views/user/user.vue'
import login from '@/views/login/login.vue'
import get from '@/views/get/get.vue'
import kecheng from '@/components/kecheng/kecheng'
import rili from '@/components/rili/rili'

Vue.use(VueRouter)

const routes = [
  { path: '/', redirect:{name:'connect'}},
  { path: '/connect', name: 'connect', component: connect},
  { path: '/dateil', name: 'dateil', component: dateil},
  { path: '/user', name: 'user', component: user},
  { path: '/login', name: 'login', component: login},
  { path: '/get', name: 'get', component: get},
  { path: '/kecheng', name: 'kecheng', component: kecheng},
  { path: '/rili', name: 'rili', component: rili},
]

const router = new VueRouter({
  routes
})

export default router
